## Process this file with automake to produce Makefile.in

AUTOMAKE_OPTIONS = foreign 1.11 dist-zip dist-xz
ACLOCAL_AMFLAGS=-I m4

if THEORA_ENABLE_EXAMPLES
EXAMPLES_DIR = examples
else
EXAMPLES_DIR =
endif

SUBDIRS = lib include doc tests m4 $(EXAMPLES_DIR)

EXTRA_DIST = \
	README.md CHANGES COPYING LICENSE \
	autogen.sh win32 macosx symbian SConstruct \
	libtheora.spec libtheora.spec.in \
	theora-uninstalled.pc.in

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = theora.pc theoradec.pc theoraenc.pc

# Remove the .svn folders included in the tarball
dist-hook:
	find $(distdir) -type d -name '.svn' | xargs rm -rf

debug:
	$(MAKE) all CFLAGS="@DEBUG@"

profile:
	$(MAKE) all CFLAGS="@PROFILE@"
